package touro.mancala.client;

public class Player {
	
	private String name;
	
	public Player(String name)
	{
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String toString()
	{
		return getName();
	}
	
	public boolean equals(Object o)
	{
		if(o instanceof Player)
		{
			
			if(this.getName() .equals( ((Player)o).getName()) )
			{
				return true;
			}
			else return false;
		}
		
		else return false;
	}
	
	
	/*private static int nextplayerid = 0; 
	
	private int playerid; 
	
	public int getPlayerid() {
		return playerid;
	}

	public void setPlayerid(int playerid) {
		this.playerid = playerid;
	}

	public Player()
	{
		playerid = ++nextplayerid;
	}
	
	public static int getNextPlayerID()
	{
		return nextplayerid;
	}*/

}
